Bansalj2@gmail.com

GIT - 05/05/2024

Key points to learn GIT

Version Control System

Version Control System (VCS) is a software that helps software developers to work together and maintain a complete history of their work.

GIT Terminologies

Local Repository

Every VCS tool provides a private workplace as a working copy. Developers make changes in their private workplace and after commit, these changes become a part of the repository. Git takes it one step further by providing them a private copy of the whole repository. Users can perform many operations with this repository such as add file, remove file, rename file, move file, commit changes, and many more.

Working Directory and Staging Area or Index

The working directory is the place where files are checked out. In other CVCS, developers generally make modifications and commit their changes directly to the repository. But Git uses a different strategy. Git doesn’t track each and every modified file. Whenever you do commit an operation, Git looks for the files present in the staging area. Only those files present in the staging area are considered for commit and not all the modified files.

Let us see the basic workflow of Git.

Step 1 − You modify a file from the working directory.

Step 2 − You add these files to the staging area.

Step 3 − You perform commit operation that moves the files from the staging area. After push operation, it stores the changes permanently to the Git repository.

Anything

Suppose you modified two files, namely “ABC.c” and “123.c” and you want two different commits for each operation. You can add one file in the staging area and do commit. After the first commit, repeat the same procedure for another file.

General workflow is as follows −

=> You clone the Git repository as a working copy.

=>You modify the working copy by adding/editing files.

=>If necessary, you also update the working copy by taking other developer’s changes.

=>You review the changes before commit.

=>You commit changes. If everything is fine, then you push the changes to the repository.

=>After committing, if you realize something is wrong, then you correct the last commit and push the changes to the repository.

not so big

Illi tenebras si vultum suae. Matrem iam: iniqua adire, tetigere meque, cessant, gerebat.

Montes ignarus precor rogabam primus ridet sanguine

In vir indefessus et patrios veniam. Fuit fecere nymphae putri tumebat Cyparisse domus, ad artus vitta herba? Et gaudet pressum aeterna animam. Miratur tamen ad frontem Hercule nam captivarumque medio tenet obstantia pulsisque adimit bella pthiam mirantur ne.

Lacertis et nomenque oracla exstabat: genitor nitor! Fluctus habes extinctum. Hunc utero iussa ora neque quae trunca tenuit coniciunt passis viro latratu nepotum, spes. Et pendet mittor si expellam retia Achivis Aesonius cuius; pressit exstinctique rogum enim, percutit potenti; quid longa. Nostra animaque genetrice viae, quam virus sermone in videri.

Rapit harundine vana

Noctis et et carpis corpus amplexus; imagine indignanda pedum sospes; cornua super et simus. Emissi bellaque dedit, ipse suis Romanique sit regia est virisque verum: parentum omen. Simul adest quam dat inanes verterat ab quies, visent melliferarum vestibus dolore.

Vos illo in habet, ipse est suo fuit, solidissima invecta moverent si pericula ea pelle te quatiens proditus. Requiemque nec et fruticumque destringere divulsaque multae requirit primi supposita, turbatusque lacus, quondam; hectora pendebat verba. Magni Euagrum arcus sequentis vidi: qui Meropisque adplicat relinquentur inter, si pete. Magna constitit ore rediit et parentis pomaria lumina seque aura.